import request from '@/utils/request'

/**
 * 用户分页查询
 * @param {查询条件} data
 */
export function getUserPageList(data) {
  return request({
    url: 'baseFrame/user/pageList',
    method: 'post',
    data: data,
  })
}




/**
 * 新增用户
 * @param data
 */
export function addUser(data) {
  return request({
    url: 'baseFrame/user/add',
    method: 'post',
    data: data,
  })
}

/**
 * 修改用户
 * @param data
 */
export function modifyUser(data) {
  return request({
    url: 'baseFrame/user/modify',
    method: 'post',
    data: data,
  })
}

export function changeUserState(data) {
    return request({
        url: 'baseFrame/user/changeState',
        method: 'post',
        data: data,
    })
}


/**
 * 获取用户详情
 * @param {Id}
 */
export function getUserDetail(id) {
  return request({
    url: 'baseFrame/user/detail/' + id,
    method: 'get'
  })
}

/**
 * 删除用户
 * @param {主键} pid
 */
export function delUser(data) {
  return request({
    url: 'baseFrame/user/delete',
    method: 'post',
    data:data
  })
}

